package com.winshare.saleAssistant.domain.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@ApiModel
public class CaseCreateDTO {

    @NotBlank(message = "时间不能为空")
    @ApiModelProperty(value = "时间,格式为：yyyy-mm-dd hh:mm:ss")
    @Pattern(regexp = "^(\\d{4})-([0-1]\\d)-([0-3]\\d)\\s([0-5]\\d):([0-5]\\d):([0-5]\\d)$",message = "格式为：yyyy-mm-dd hh:mm:ss")
    private String createTime;

    @NotBlank(message = "地址不可以为空")
    @Length(min = 1, max = 50, message = "地址长度需要在1-50个字之间")
    @ApiModelProperty(value = "地址")
    private String address;

    @NotBlank(message = "案例名称不可以为空")
    @Length(min = 1, max = 100, message = "案例名称长度需要在1-100个字之间")
    @ApiModelProperty(value = "案例名称")
    private String caseName;

    @NotBlank(message = "案例描述不可以为空")
    @Length(min = 1, max = 255, message = "案例描述长度需要在1-255个字之间")
    @ApiModelProperty(value = "案例描述")
    private String caseDesc;

    @Length(min = 0, max = 255, message = "图片url长度需要在0-255个字之间")
    @ApiModelProperty(value = "图片url")
    private String imageUrl;

    @NotNull(message = "机构id不可以为空")
    @ApiModelProperty(value = "机构id")
    private Integer submitOrgId;

    @NotBlank(message = "机构名称不可以为空")
    @ApiModelProperty(value = "机构名称")
    private String submitOrgName;

    public CaseCreateDTO() {
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCaseName() {
        return caseName;
    }

    public void setCaseName(String caseName) {
        this.caseName = caseName;
    }

    public String getCaseDesc() {
        return caseDesc;
    }

    public void setCaseDesc(String caseDesc) {
        this.caseDesc = caseDesc;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public Integer getSubmitOrgId() {
        return submitOrgId;
    }

    public void setSubmitOrgId(Integer submitOrgId) {
        this.submitOrgId = submitOrgId;
    }

    public String getSubmitOrgName() {
        return submitOrgName;
    }

    public void setSubmitOrgName(String submitOrgName) {
        this.submitOrgName = submitOrgName;
    }
}
